﻿using StarryEdge.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarryEdge.Core.Parameter
{
    public interface IUserEentity
    {
        void Save();
        List<RoleModel> GetRoles();
        void AddRole(RoleModel role);
        void RemoveRole(RoleModel role);

        List<UserModel> GetUsers();
        void AddUser(UserModel userModel);
        void RemoveUser(UserModel userModel);

        List<UserModel> Users { get; }
        UserModel GetLoginUser();
        bool Login(string username, string password);

        bool LoginSwipeCard(string cardNumber);

        void ExitLogin();
    }
}
